import request from "@/utils/request";

export function createRole(data) {
  return request({
    url: "/platform/role/add",
    method: "post",
    data,
  });
}
// 权限分配
export function assignPermissions(data) {
  return request({
    url: "/platform/role/assignPermissions",
    method: "post",
    data,
  });
}
// 获取权限列表
export function getPermissionsOptions(params) {
  return request({
    url: "/platform/role/assignPermissionsOptions",
    method: "get",
    params,
  });
}
export function getRoleList(params) {
  return request({
    url: "/platform/role/list",
    method: "get",
    params,
  });
}
